fix(WebAudio): prevent position reset when seeking to duration#4283
fix(WebAudio): prevent position reset when seeking to duration#4283
Conversation
Co-authored-by: katspaugh <381895+katspaugh@users.noreply.github.com>
Co-authored-by: katspaugh <381895+katspaugh@users.noreply.github.com>
|
@copilot thanks for fixing it for WebAudio but the original issue didn't say specifically WebAudio, so I would assume they had the bug with the default media element playback. |
Deploying wavesurfer-js with
|
| Latest commit: |
4e7c1b4
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://1e6ae945.wavesurfer-js.pages.dev |
| Branch Preview URL: | https://copilot-fix-seek-jump-to-sta.wavesurfer-js.pages.dev |
Co-authored-by: katspaugh <381895+katspaugh@users.noreply.github.com>
Added a fix for the default MediaElement backend in commit 4e7c1b4. When the media is ended and Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@AsherAla can you test if this branch solves the issue for you? |
currentPos >= this.durationwas resetting to 0 when position equaled durationmedia.endedis true andplay(start, end)is called, the seek might not complete before play is invoked, causing the browser to restart from the beginning>=to>so only positions strictly past the duration are resetOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.